<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%--
  Created by IntelliJ IDEA.
  User: kong
  Date: 15/10/15
  Time: 下午3:43
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
  <title>登录－闲田牧场</title>
  <c:url value="/css/bootstrap.min.css" var="bootstrapcss"/>
  <c:url value="/images/favicon.ico" var="favicon"/>
  <link rel="SHORTCUT ICON" href="${favicon}" />
  <link rel="stylesheet" type="text/css" href="${bootstrapcss}">

  <style>
    #loginform{
      padding-left: 5%;
      padding-bottom: 4%;
      padding-top: 4%;
      padding-right: 5%;
      border-radius: 0%;
      background: #ffffff;
      margin-bottom: 5%;
      border: 1px solid #cacfd2;
    }
  </style>
</head>
<body>

<c:import url="/plugins/search"></c:import>

<div class="container">
  <div class="col-md-8"></div>
  <div class="col-lg-4">
    <div id="loginform">
      <form class="passport-form passport-form-sign" id="login-form" action="/user/login"
            method="post">
        <input type='hidden' value='7' name='expire'/>
        <input type='hidden' value='http%3A%2F%2Fwww.jikexueyuan.com' name='referer'/>

        <div class="form-item">
          <div class="form-cont">
            <input type="text" name="uname" id="uname" class="passport-txt xl w-full"
                   tabindex="1" placeholder="手机 / 用户名 / 邮箱" />
          </div>
        </div>
        <div class="form-item">
          <div class="form-cont">
            <input type="password" id="password" name="password" class="passport-txt xl w-full"
                   tabindex="2" placeholder="输入6~32位密码" />
          </div>
        </div>
        <div class="form-item form-imgcode mb-25">
          <div class="form-cont">
            <div class="layout-inner">
              <input type="text" name="verify" class="passport-txt xl w-lg"
                     tabindex="3" placeholder="验证码" />
            </div>
            <div class="imgcode">
              <img src="/verifycode" alt='验证码' class="verifyCode" jktag="0001|0.1|91002">
              <i class="passport-icon icon-refresh refreshCode" jktag="0001|0.1|91002"></i>
            </div>
          </div>
        </div>
        <div class="form-item form-sevenday">
          <div class="form-cont clearfix">
            <label><input type="checkbox" class="passport-sevenday"/>记住密码</label>
            <a href="/sso/forget" class="forget-link" jktag="0001|0.1|91003">忘记密码</a>
          </div>
        </div>
        <div class="form-item">
          <div class="form-cont">
            <button type="submit" id="login" class="passport-btn passport-btn-def xl w-full"
                    tabindex="4" jktag="0001|0.1|91038">登录</button>
          </div>
        </div>
        <div class="form-item form-sevenday">
          <a href="" class="login-link" jktag="0001|0.1|91003">还没有账号？注册一个</a>
        </div>
      </form>


    </div>
  </div>
</div>

<c:import url="/plugins/footer"></c:import>
</body>

<c:url value="/js/bootstrap.min.js" var="bootstrapjs"/>
<script type="text/javascript" src="${bootstrapjs}"></script>
<c:url value="/js/jquery.validate.min.js" var="validate"/>
<script type="text/javascript" src="${validate}"></script>
<%--<script>--%>
  <%--$().ready(function () {--%>
    <%--$("#login-form").validate({--%>
      <%--message:{--%>
        <%--uname:{--%>
          <%--required:"用户名不能为空"--%>
        <%--},--%>
        <%--password:{--%>
          <%--required:"密码不能为空"--%>
        <%--}--%>
      <%--},--%>
      <%--errorPlacement:function(error,element){--%>
        <%--alert(111);--%>
      <%--},--%>
      <%--submitHandler: function() {--%>
        <%--alert("submitted!");--%>
      <%--},--%>
      <%--success: function(label) {--%>
        <%--// set &nbsp; as text for IE--%>
<%--//        label.html("&nbsp;").addClass("checked");--%>
        <%--alert("sucess");--%>
      <%--},--%>
      <%--highlight: function(element, errorClass) {--%>
        <%--$(element).parent().next().find("." + errorClass).removeClass("checked");--%>
        <%--alert("highlighy");--%>
      <%--}--%>
<%--//      errorClass:"passport-error-txt"--%>
    <%--})--%>
  <%--})--%>
<%--</script>--%>
</html>
